<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./test.css">
    <style>
        ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: space-around; /*水平居中或均匀分布链接*/
            align-items: center; /* 垂直居中 */
            letter-spacing: 2px;
        }

        ul li a{
            color: black;
            font-family: 宋体;
            text-decoration: none;
        }
        li a:hover{
            color: red;
        }

        h1{
            text-align: left;
        }
        h2{
            text-align: center;
        }
        h3{
            text-align: right;
        }
        p{
            text-indent: 10px;
        }
    </style>
</head>
<body>
    <div id="ul1">
        <ul class="one">
            <li><a href="#">首页</a></li>
            <li><a href="#">新闻</a></li>
            <li><a href="#">分类</a></li>
            <li><a href="#">公告</a></li>
            <li><a href="#">专栏</a></li>
        </ul>
    </div>
    <h1>靠左</h1>
    <h2>居中</h2>
    <h3>靠右</h3>
    <p>sssssssssssssss</p>


    
</body>
</html>